#region History

/* -------------------------------------------------------------------------------- 
 * Project Name: JobBoard Enterprise
 * Module: Jb.Web 
 * Name: User.cs
 * Purpose: ViewModel class for User
 *                   
 * Author: Md. Hassanur Rahman
 * Language: C# SDK Version 4.0
 * --------------------------------------------------------------------------------
 * Change History:
 * Version: 1.0    MHR  07/06/2012
 * Description: Initial Development
 * -------------------------------------------------------------------------------- */

#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;


namespace Jb.Web.ViewModels
{
    [Serializable]
	public class UserViewModel : BaseViewModel
	{	
        /// <summary>
		/// Gets or sets the ID
		/// </summary>
        public int ID { get; set;}
            
        [Required(ErrorMessage= "Please Enter a User Name")]
        [StringLength(150, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "User Name")] 
		public String UserName	{ get; set; }
            
        [Required(ErrorMessage= "Please Enter a Password")]
        [StringLength(50, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Password")] 
		public String Password	{ get; set; }
            
        [Required(ErrorMessage= "Please Choose Is Active?")]         
        [Display(Name = "Is Active")] 
		public String IsActive	{ get; set; }

        [Required(ErrorMessage= "Please Select a Group")] 
        [Display(Name = "Group")] 
        public int GroupID { get; set;}

        [Display(Name = "Job Seeker")]
        public int JobSeekerID { get; set; }

        [Display(Name = "Contact")]
        public int ContactID { get; set; }

        [Display(Name = "Last Logged In")]
        public String LastLoggedIn { get; set; }

        public ContactViewModel Contact { get; set; }

        public JobSeekerViewModel JobSeeker { get; set; }

        public GroupViewModel Group { get; set; }

        public JobSeekerInfo JobSeekerInfo { get; set; }

        public EmployerInfo EmployerInfo { get; set; }
	}
}

